package HomeWork.chapter05;
import java.util.Scanner;
/**
 * Enjoy programming!!!
 * Time: 2021/12/3 -  16:27
 */
public class Diamond_ {
    public static void main(String[] args) {


    Scanner in = new Scanner(System.in);

    int n = in.nextInt();
    for (int i = 1; i <= n / 2 + 1; i++){
        for (int j = 1; j <= n ; j++){
            if (j <= (n - (2 * i - 1)) / 2 ){
                System.out.print(" ");
            }
            if (j > (n - (2 * i - 1)) / 2 && j <= (n - (2 * i - 1)) / 2 + (2 * i - 1) ){
                System.out.print("*");
            }
        }
        System.out.println();
    }for (int i = 1; i <= n / 2 ; i++){
        for (int j = 1; j <= n ; j++){
            if (j <=  (2 * i - 1) / 2 + 1 ){
                System.out.print(" ");
            }
            if (j >  (2 * i - 1) / 2 + 1 && j <= n - (2 * i - 1)  ){
//            else {
                System.out.print("*");
            }
            }
//        }
        System.out.println();
    }

}
}